// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:flutter_demo_dsmn/main.dart';

void main() {
  var list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  var newList = [];
  var cacheList = [];
  for (var i = 0; i < list.length; i++) {
    if (cacheList.length == 3) {
      newList.add(cacheList);
      cacheList = [];
    }
    cacheList.add(list[i]);
    if (i == list.length - 1) {
      newList.add(cacheList);
    }
  }
  print(newList);
  newList.map((e) => {

  });
}
